# !/usr/bin/python
# _*_ coding: utf-8 _*_
# @Time : 2021/5/25 4:50 下午
# @Author : liujun
# @File : main.py
# @desc : 启动文件

from core.server import create_app


app = create_app()

if __name__ == '__main__':
    import uvicorn

    # 输出所有的路由
    for route in app.routes:
        if hasattr(route, "methods"):
            print({'path': route.path, 'name': route.name, 'methods': route.methods})
    # dev
    uvicorn.run(f'{__name__}:app', host='127.0.0.1', port=5000, reload=True)
